package com.example.mysqlsearchdemo.entities;

import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;

@Entity
@Data
@DynamicInsert
@DynamicUpdate
public class User extends BaseEntity {
    @Column(columnDefinition = "varchar(32) not null default '' comment '用户'")
    private String userName;
}
